/*This file is part of WZLibCP.

 *  WZLibCP is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

 *  WZLibCP is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
    along with WZLibCP.  If not, see <http://www.gnu.org/licenses/>.
		
	Author: calc0000
*/
#ifndef __WZLIB_WZIMAGE_H
#define __WZLIB_WZIMAGE_H
#include "WZLibConfig.h"

#include "WZBinaryReader.h"
#include "WZObject.h"

namespace WZLib{
	class WZSubProperty;
	class WZImage:public WZObject{
	protected:
		int					_blockSize;
		int					_checksum;
		unsigned int		_offset;
		WZSubProperty*		_sub;
		WZBinaryReader*		_reader;
	public:
		//Constructor
		ctor				WZImage	(std::string name="");
		//Destructor
		dtor				~WZImage();
		//Getters/Setters
		int&				blockSize();
		int&				checksum();
		unsigned int&		offset();
		WZSubProperty*		sub();
		WZBinaryReader**	reader();
		//Methods
		ErrorCode			parse	(WZBinaryReader* reader);
	};
};

#endif